/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-05-28
 * Time: 15:13
 */
public class Student {
    private String name;
    private int age;
    private static String classroom = "1班";//static修饰的成员变量

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void Sleep() {
        System.out.println("睡觉");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public static String getClassroom() {
        return classroom;
    }

    public static void setClassroom(String classroom) {
        Student.classroom = classroom;
    }
}
